package universityModel.person;

/**
 *
 * @author Parkhomenko Dmytro
 */

public class Teacher extends Person {
    private String academicDegree;
    private StudyPlace workPlaces;
    private int salary;
    private String subject;
	        
    public Teacher( Name name,
                    BiographicalData biographicalData, 
                    String subject,
                    String academicDegree) {
	super(name, biographicalData);
                
	this.subject = subject;
	this.academicDegree = academicDegree;
                
        learningProcess = new NoComputerWork();
    }
        
    public void setSalary(int newSalary) {
	salary = newSalary;
    }
	
    public int getSalary() {
	return salary;
    }
	
    public void setSubject(String newSubject) {
        subject = newSubject;
    }
	
    public String getSubject() {
        return subject;
    }
	
    @Override
    public String getProffesionalDescription() {
        StringBuilder builder = new  StringBuilder();
        
        builder.append("Teacher: ");
        builder.append(workPlaces);
        builder.append("\nSubject: ");
        builder.append(subject );
        builder.append("\nSalary = ");
        builder.append(salary);
        builder.append("\nAcademic degree: ");
        builder.append(academicDegree);
	return builder.toString(); 
    }
	
    public void setMarkToStudent(Student student, String mark) {
    	//some code to do
    }
	
    public void participateInTheLearningProcess() {
    	//do to something;
    }	
        
    @Override
    public String toString() {
        return super.toString();
    } 
}
